﻿using System;
using Microsoft.Practices.Composite.Events;
using StockholmsStad.Windows.UI.Modules.Ceremony.Interfaces;
using StockholmsStad.Windows.UI.Modules.Ceremony.Models;

namespace StockholmsStad.Windows.UI.Modules.Ceremony.Presenters
{
    public class CeremonyListPresenter : ICeremonyListPresenter
    {
        public CeremonyListPresenter(ICeremonyListView view, ICeremonyService ceremonyService)
        {
            View = view;
            View.CeremonySelected += ((sender, e) => CeremonySelected(sender, e));
            //view.Model = ceremonyService.RetrieveCeremonies();
        }

        #region ICeremonyListPresenter Members

        public ICeremonyListView View { get; set; }

        public event EventHandler<DataEventArgs<CeremonySummaryPresentationModel>> CeremonySelected = delegate { };

        #endregion
    }
}
